package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "user_odevity_record")
public class UserOdevityRecord {//用户猜奇偶数记录表

    private long id;//编号

    private long uid;//用户id

    private String userName;//用户昵称

    private String headImgUrl;//用户头像

    /*
      * 猜奇偶数记录Id
      * */
    private  long odevityId;

    /*
  * 开奖期号
  * */
    private long issueNum;

    /*
   * 猜开奖数
   * */
    private long lotteryNum;  //0:偶数   1：奇数

    private long status;//是否中奖  0：中奖   1：未中奖

    /**
     * 时间
     */
    private Timestamp createTime;


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "lottery_name")
    public long getLotteryNum() {
        return lotteryNum;
    }

    public void setLotteryNum(long lotteryNum) {
        this.lotteryNum = lotteryNum;
    }

    @Basic
    @Column(name = "uid")
    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }
    @Basic
    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Basic
    @Column(name = "head_imgUrl")
    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }
    @Basic
    @Column(name = "odevity_id")
    public long getOdevityId() {
        return odevityId;
    }

    public void setOdevityId(long odevityId) {
        this.odevityId = odevityId;
    }
    @Basic
    @Column(name = "issue_num")
    public long getIssueNum() {
        return issueNum;
    }

    public void setIssueNum(long issueNum) {
        this.issueNum = issueNum;
    }
    @Basic
    @Column(name = "status")
    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }
    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }


    public UserOdevityRecord() {
    }

    public UserOdevityRecord(long uid, String userName, String headImgUrl, long odevityId, long issueNum, long lotteryNum, long status, Timestamp createTime) {
        this.uid = uid;
        this.userName = userName;
        this.headImgUrl = headImgUrl;
        this.odevityId = odevityId;
        this.issueNum = issueNum;
        this.lotteryNum = lotteryNum;
        this.status = status;
        this.createTime = createTime;
    }
}
